package com.pipi.entity;

import lombok.Data;

@Data
public class healthData implements Comparable<healthData>{
    public String property;
    public Double score;

    public healthData(String property, Double score) {
        this.property = property;
        this.score = score;
    }
    @Override
    public int compareTo(healthData o) {
        return score > o.score ? -1 : 1;
    }

    @Override
    public String toString() {
        return "healthData{" +
                "property='" + property + '\'' +
                ", score=" + score +
                '}';
    }
}
